package com.fanpan26.spring;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author fanpan26
 */
public class SpringApplication {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");


        context.getBeanFactory().addBeanPostProcessor(new MyBeanPostProcessor());
        User user = context.getBean(User.class);

        System.out.println(user.getName());
    }

}
